package operation.modules.operation.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import operation.modules.operation.dto.ColumnDTO;
import operation.modules.operation.entity.DbProjectEntity;
import operation.modules.operation.entity.StatisticEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DatabaseManageDao extends BaseMapper<DbProjectEntity> {

    /**
     *
     * @return
     */
    List<DbProjectEntity> queryAllDateBase();

    /**
     * 查询指定数据库指定表所有字段
     */
    List<ColumnDTO> queryAllColumn(@Param(Constants.WRAPPER) QueryWrapper<ColumnDTO> queryWrapper);

}